<!DOCTYPE html>
<html>
    <head lang="en">
        <meta charset="UTF-8">
        <title></title>
       
    </head>
    <body>
        <script>
      var i=5
      switch(i){
          case 1:
          document.write("i=1")
          case 2:
          document.write("i=2");
          break;
          default:
          document.write("条件不满足case");
            break;
      }
      
        </script>

    </body>
</html>